<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="http://localhost/themes/admin/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="http://localhost/themes/admin/css/admin.css" type="text/css" rel="stylesheet" />
<script src="http://localhost/assets/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="http://localhost/themes/admin/js/jquery.form.js" type="text/javascript"></script>
<title>付款方式新增修改</title>
</head>

<body>
<div class="formmain">
	<div class="formbox">
		<?php 
		$attributes = array('class' => 'form-horizontal');
		echo form_open('admin/SetPayTypePost/'.$Id, $attributes);?>
			  <div class="control-group">
				<label class="control-label" for="input01">付款方式</label>
				<div class="controls">
				  <?php 
				  echo form_input('Name', $Id==0 ? set_value('Name'):$oPayType->Name,"placeholder='输入付款方式'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$Name_Error;?></span>
				</div>
			  </div>
			  <div class="control-group">
				<label class="control-label" for="input01">网址</label>
				<div class="controls">
				  <?php echo form_input('Url',$Id==0 ? set_value('Url'):$oPayType->Url,"placeholder='网址'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$Url_Error;?></span>
				</div>
			  </div>
			  <div class="control-group">
				<label class="control-label" for="input01">手续费计算方式</label>
				<div class="controls">
					<?php 
					
					$options = array(
								  'Per'  => '百分比',
								  'Add'    => '加法'
								);
					echo form_dropdown('CalculateType', $options, $Id==0 ? set_value('CalculateType'):$oPayType->CalculateType);
					?>
					<span class="label label-important"></span>
				</div>
			  </div> 
			  <div class="control-group">
				<label class="control-label" for="input01">手续费</label>
				<div class="controls">
				  <?php echo form_input('Fee',$Id==0 ? set_value('Fee'):$oPayType->Fee,"placeholder='手续费'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$Fee_Error;?></span>
				</div>
			  </div> 
			  <div class="control-group">
				<label class="control-label" for="input01">预计到账时间</label>
				
				<div class="controls">
				  <?php echo form_input('MaybeTime',$Id==0 ? set_value('MaybeTime'):$oPayType->MaybeTime,"placeholder='预计到账时间'  class='input-xlarge'");?>秒
				  <span class="label label-important"><?php echo @$MaybeTime_Error;?></span>
				</div>
				<div class="controls">
				<label>一天86400秒,半小时1800秒，1小时3600秒</label>
				</div>
			  </div> 
			  <!--/个人主页-->
			  <div class="form-actions">
				<span class="label label-success"><?php echo @$success;?></span>
				<label></label>
				<button type="submit" class="btn btn-info">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;<a class="tn btn-large btn-primary disabled" href="<?php echo site_url("admin/SetPayTypeList")?>">列表页面</a>
			  </div>
			  
		  </form>
	</div>
</div>
</body>
</html>